<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Sprotty JSXample</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/balloon-css/0.5.0/balloon.min.css">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/page.css">
    <!-- support Microsoft browsers -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dom4/3.0.0/dom4.js">
    <script>
        document.addEventListener("DOMContentLoaded", function toggleShortcuts(){
            var isMac = navigator.platform.toUpperCase().indexOf('MAC')>=0;
            var mac = document.getElementById('mac');
            var other = document.getElementById('other');
            if (isMac) {
                mac.style.display = 'block';
                other.style.display = 'none';
            } else {
                mac.style.display = 'none';
                other.style.display = 'block';
            }
        });
    </script>
</head>
<body>
    <div class="container">
        <div class="row" id="sprotty-app" data-app="jsxample">
            <div class="col-md-10">
                <h1>Sprotty JSXample</h1>
            </div>
            <div class="help col-md-2">
                <a href="https://sprotty.org/docs/user-interaction/">Help</a>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div id="sprotty" class="sprotty"></div>
            </div>
            <div class="footer">
                <div id="mac" class="shortcuts">
                    <b>Fit to screen:</b> Cmd+Shift+F, <b>Center selected:</b> Cmd+Shift+C, <b>Export SVG:</b> Cmd+Shift+E
                </div>
                <div id="other" class="shortcuts" style="display: none;">
                    <b>Fit to screen:</b> Ctrl+Shift+F, <b>Center selected:</b> Ctrl+Shift+C, <b>Export SVG:</b> Ctrl+Shift+E
                </div>
                <div class="copyright">
                    &copy; 2024 <a href="https://www.typefox.io/">TypeFox GmbH</a>.
                </div>
            </div>
        </div>
    </div>
<script src="../resources/bundle.js"></script>
</body>
</html>